class LiveChatInfo {
  String? messages;
  String? notice;
  String? noticeRoom;
  String? noticeSystem;
  bool? open;
  bool? barrage;
  String? tip;
  String? noticeHref;
  bool? goods;
  bool? gift;
  bool? plan;

  LiveChatInfo(
      {this.messages,
      this.notice,
      this.noticeRoom,
      this.noticeSystem,
      this.open,
      this.barrage,
      this.tip,
      this.noticeHref,
      this.goods,
      this.gift,
      this.plan});

  LiveChatInfo.fromJson(Map<String, dynamic> json) {
    messages = json['messages'];
    notice = json['notice'];
    noticeRoom = json['noticeRoom'];
    noticeSystem = json['noticeSystem'];
    open = json['open'];
    barrage = json['barrage'];
    tip = json['tips'];
    noticeHref = json['href'];
    goods = json['goods'] ?? true;
    gift = json['gift'] ?? true;
    plan = json['plan'] ?? true;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['messages'] = this.messages;
    data['notice'] = this.notice;
    data['noticeRoom'] = this.noticeRoom;
    data['noticeSystem'] = this.noticeSystem;
    data['open'] = this.open;
    data['barrage'] = this.barrage;
    data['tips'] = this.tip;
    data['href'] = this.noticeHref;
    data['goods'] = this.goods;
    data['gift'] = this.gift;
    data['plan'] = this.plan;
    return data;
  }
}
